package cn.com.sqlite.demo.entity.po.log;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

/**
 * @Description: 系统日志信息表
 * @author Y.Jin
 * @date 2017年2月7日 下午4:08:24
 */
@Entity
@Table(name = "system_log_info")
@DynamicInsert(true)
@DynamicUpdate(true)
public class SystemLogInfoPO {

	private Integer id;
	private Integer logType;// 日志类型
	private String logTypeDesc;// 类型说明
	private String targetClsName;// 目标类名
	private String exceptionInfo;// 异常信息
	private Date createTime;// 记录日期
	private String userName;// 操作员
	private String currentMethod;//当前的方法
	private String params;//参数信息
	private String f1;// 其他

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getLogType() {
		return logType;
	}

	public void setLogType(Integer logType) {
		this.logType = logType;
	}

	public String getLogTypeDesc() {
		return logTypeDesc;
	}

	public void setLogTypeDesc(String logTypeDesc) {
		this.logTypeDesc = logTypeDesc;
	}

	public String getTargetClsName() {
		return targetClsName;
	}

	public void setTargetClsName(String targetClsName) {
		this.targetClsName = targetClsName;
	}

	public String getExceptionInfo() {
		return exceptionInfo;
	}

	public void setExceptionInfo(String exceptionInfo) {
		this.exceptionInfo = exceptionInfo;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getF1() {
		return f1;
	}

	public void setF1(String f1) {
		this.f1 = f1;
	}

	public String getCurrentMethod() {
		return currentMethod;
	}

	public void setCurrentMethod(String currentMethod) {
		this.currentMethod = currentMethod;
	}

	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	@Override
	public String toString() {
		return "SystemLogInfoPO [id=" + id + ", logType=" + logType + ", logTypeDesc=" + logTypeDesc
				+ ", targetClsName=" + targetClsName + ", exceptionInfo=" + exceptionInfo + ", createTime=" + createTime
				+ ", userName=" + userName + ", currentMethod=" + currentMethod + ", params=" + params + ", f1=" + f1
				+ "]";
	}

}
